import 'package:flutter/cupertino.dart';

class DatePickerItem extends StatelessWidget {
  final List<Widget> children;
  final MainAxisAlignment rowMainAxisAlignment;

  const DatePickerItem(
      {super.key,
      this.rowMainAxisAlignment = MainAxisAlignment.spaceBetween,
      required this.children});

  @override
  Widget build(BuildContext context) {
    return DecoratedBox(
      decoration: const BoxDecoration(
        border: Border(
          bottom: BorderSide(
            color: CupertinoColors.inactiveGray,
            width: 0.0,
          ),
        ),
      ),
      child: Row(
        mainAxisAlignment: rowMainAxisAlignment,
        children: children,
      ),
    );
  }
}
